Optimal. Leaf size=161 \[ \frac{20 a^3 (A+B) F\left (\left .\frac{1}{2} (c+d x)\right |2\right )}{3 d}-\frac{4 a^3 (A-B) E\left (\left .\frac{1}{2} (c+d x)\right |2\right )}{d}-\frac{4 a^3 (4 A+B) \sin (c+d x) \sqrt{\cos (c+d x)}}{3 d}+\frac{2 (7 A+3 B) \sin (c+d x) \left (a^3 \cos (c+d x)+a^3\right )}{3 d \sqrt{\cos (c+d x)}}+\frac{2 a A \sin (c+d x) (a \cos (c+d x)+a)^2}{3 d \cos ^{\frac{3}{2}}(c+d x)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.430076, antiderivative size = 161, normalized size of antiderivative = 1., number of steps used = 7, number of rules used = 6, integrand size = 33, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.182, Rules used = {2975, 2968, 3023, 2748, 2641, 2639} \[ \frac{20 a^3 (A+B) F\left (\left .\frac{1}{2} (c+d x)\right |2\right )}{3 d}-\frac{4 a^3 (A-B) E\left (\left .\frac{1}{2} (c+d x)\right |2\right )}{d}-\frac{4 a^3 (4 A+B) \sin (c+d x) \sqrt{\cos (c+d x)}}{3 d}+\frac{2 (7 A+3 B) \sin (c+d x) \left (a^3 \cos (c+d x)+a^3\right )}{3 d \sqrt{\cos (c+d x)}}+\frac{2 a A \sin (c+d x) (a \cos (c+d x)+a)^2}{3 d \cos ^{\frac{3}{2}}(c+d x)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2975
Rule 2968
Rule 3023
Rule 2748
Rule 2641
Rule 2639
Rubi steps
\begin{align*} \int \frac{(a+a \cos (c+d x))^3 (A+B \cos (c+d x))}{\cos ^{\frac{5}{2}}(c+d x)} \, dx &=\frac{2 a A (a+a \cos (c+d x))^2 \sin (c+d x)}{3 d \cos ^{\frac{3}{2}}(c+d x)}+\frac{2}{3} \int \frac{(a+a \cos (c+d x))^2 \left (\frac{1}{2} a (7 A+3 B)-\frac{3}{2} a (A-B) \cos (c+d x)\right )}{\cos ^{\frac{3}{2}}(c+d x)} \, dx\\ &=\frac{2 a A (a+a \cos (c+d x))^2 \sin (c+d x)}{3 d \cos ^{\frac{3}{2}}(c+d x)}+\frac{2 (7 A+3 B) \left (a^3+a^3 \cos (c+d x)\right ) \sin (c+d x)}{3 d \sqrt{\cos (c+d x)}}+\frac{4}{3} \int \frac{(a+a \cos (c+d x)) \left (\frac{3}{2} a^2 (3 A+2 B)-\frac{3}{2} a^2 (4 A+B) \cos (c+d x)\right )}{\sqrt{\cos (c+d x)}} \, dx\\ &=\frac{2 a A (a+a \cos (c+d x))^2 \sin (c+d x)}{3 d \cos ^{\frac{3}{2}}(c+d x)}+\frac{2 (7 A+3 B) \left (a^3+a^3 \cos (c+d x)\right ) \sin (c+d x)}{3 d \sqrt{\cos (c+d x)}}+\frac{4}{3} \int \frac{\frac{3}{2} a^3 (3 A+2 B)+\left (-\frac{3}{2} a^3 (4 A+B)+\frac{3}{2} a^3 (3 A+2 B)\right ) \cos (c+d x)-\frac{3}{2} a^3 (4 A+B) \cos ^2(c+d x)}{\sqrt{\cos (c+d x)}} \, dx\\ &=-\frac{4 a^3 (4 A+B) \sqrt{\cos (c+d x)} \sin (c+d x)}{3 d}+\frac{2 a A (a+a \cos (c+d x))^2 \sin (c+d x)}{3 d \cos ^{\frac{3}{2}}(c+d x)}+\frac{2 (7 A+3 B) \left (a^3+a^3 \cos (c+d x)\right ) \sin (c+d x)}{3 d \sqrt{\cos (c+d x)}}+\frac{8}{9} \int \frac{\frac{15}{4} a^3 (A+B)-\frac{9}{4} a^3 (A-B) \cos (c+d x)}{\sqrt{\cos (c+d x)}} \, dx\\ &=-\frac{4 a^3 (4 A+B) \sqrt{\cos (c+d x)} \sin (c+d x)}{3 d}+\frac{2 a A (a+a \cos (c+d x))^2 \sin (c+d x)}{3 d \cos ^{\frac{3}{2}}(c+d x)}+\frac{2 (7 A+3 B) \left (a^3+a^3 \cos (c+d x)\right ) \sin (c+d x)}{3 d \sqrt{\cos (c+d x)}}-\left (2 a^3 (A-B)\right ) \int \sqrt{\cos (c+d x)} \, dx+\frac{1}{3} \left (10 a^3 (A+B)\right ) \int \frac{1}{\sqrt{\cos (c+d x)}} \, dx\\ &=-\frac{4 a^3 (A-B) E\left (\left .\frac{1}{2} (c+d x)\right |2\right )}{d}+\frac{20 a^3 (A+B) F\left (\left .\frac{1}{2} (c+d x)\right |2\right )}{3 d}-\frac{4 a^3 (4 A+B) \sqrt{\cos (c+d x)} \sin (c+d x)}{3 d}+\frac{2 a A (a+a \cos (c+d x))^2 \sin (c+d x)}{3 d \cos ^{\frac{3}{2}}(c+d x)}+\frac{2 (7 A+3 B) \left (a^3+a^3 \cos (c+d x)\right ) \sin (c+d x)}{3 d \sqrt{\cos (c+d x)}}\\ \end{align*}
Mathematica [C] time = 6.48191, size = 879, normalized size = 5.46 \[ \sqrt{\cos (c+d x)} (\cos (c+d x) a+a)^3 \left (\frac{A \sec (c) \sin (d x) \sec ^2(c+d x)}{12 d}+\frac{\sec (c) (A \sin (c)+9 A \sin (d x)+3 B \sin (d x)) \sec (c+d x)}{12 d}-\frac{(\cos (2 c) A-5 A+B+3 B \cos (2 c)) \csc (c) \sec (c)}{8 d}+\frac{B \cos (d x) \sin (c)}{12 d}+\frac{B \cos (c) \sin (d x)}{12 d}\right ) \sec ^6\left (\frac{c}{2}+\frac{d x}{2}\right )+\frac{A (\cos (c+d x) a+a)^3 \csc (c) \left (\frac{\, _2F_1\left (-\frac{1}{2},-\frac{1}{4};\frac{3}{4};\cos ^2\left (d x+\tan ^{-1}(\tan (c))\right )\right ) \sin \left (d x+\tan ^{-1}(\tan (c))\right ) \tan (c)}{\sqrt{1-\cos \left (d x+\tan ^{-1}(\tan (c))\right )} \sqrt{\cos \left (d x+\tan ^{-1}(\tan (c))\right )+1} \sqrt{\cos (c) \cos \left (d x+\tan ^{-1}(\tan (c))\right ) \sqrt{\tan ^2(c)+1}} \sqrt{\tan ^2(c)+1}}-\frac{\frac{2 \cos \left (d x+\tan ^{-1}(\tan (c))\right ) \sqrt{\tan ^2(c)+1} \cos ^2(c)}{\cos ^2(c)+\sin ^2(c)}+\frac{\sin \left (d x+\tan ^{-1}(\tan (c))\right ) \tan (c)}{\sqrt{\tan ^2(c)+1}}}{\sqrt{\cos (c) \cos \left (d x+\tan ^{-1}(\tan (c))\right ) \sqrt{\tan ^2(c)+1}}}\right ) \sec ^6\left (\frac{c}{2}+\frac{d x}{2}\right )}{4 d}-\frac{B (\cos (c+d x) a+a)^3 \csc (c) \left (\frac{\, _2F_1\left (-\frac{1}{2},-\frac{1}{4};\frac{3}{4};\cos ^2\left (d x+\tan ^{-1}(\tan (c))\right )\right ) \sin \left (d x+\tan ^{-1}(\tan (c))\right ) \tan (c)}{\sqrt{1-\cos \left (d x+\tan ^{-1}(\tan (c))\right )} \sqrt{\cos \left (d x+\tan ^{-1}(\tan (c))\right )+1} \sqrt{\cos (c) \cos \left (d x+\tan ^{-1}(\tan (c))\right ) \sqrt{\tan ^2(c)+1}} \sqrt{\tan ^2(c)+1}}-\frac{\frac{2 \cos \left (d x+\tan ^{-1}(\tan (c))\right ) \sqrt{\tan ^2(c)+1} \cos ^2(c)}{\cos ^2(c)+\sin ^2(c)}+\frac{\sin \left (d x+\tan ^{-1}(\tan (c))\right ) \tan (c)}{\sqrt{\tan ^2(c)+1}}}{\sqrt{\cos (c) \cos \left (d x+\tan ^{-1}(\tan (c))\right ) \sqrt{\tan ^2(c)+1}}}\right ) \sec ^6\left (\frac{c}{2}+\frac{d x}{2}\right )}{4 d}-\frac{5 A (\cos (c+d x) a+a)^3 \csc (c) \, _2F_1\left (\frac{1}{4},\frac{1}{2};\frac{5}{4};\sin ^2\left (d x-\tan ^{-1}(\cot (c))\right )\right ) \sec \left (d x-\tan ^{-1}(\cot (c))\right ) \sqrt{1-\sin \left (d x-\tan ^{-1}(\cot (c))\right )} \sqrt{-\sqrt{\cot ^2(c)+1} \sin (c) \sin \left (d x-\tan ^{-1}(\cot (c))\right )} \sqrt{\sin \left (d x-\tan ^{-1}(\cot (c))\right )+1} \sec ^6\left (\frac{c}{2}+\frac{d x}{2}\right )}{6 d \sqrt{\cot ^2(c)+1}}-\frac{5 B (\cos (c+d x) a+a)^3 \csc (c) \, _2F_1\left (\frac{1}{4},\frac{1}{2};\frac{5}{4};\sin ^2\left (d x-\tan ^{-1}(\cot (c))\right )\right ) \sec \left (d x-\tan ^{-1}(\cot (c))\right ) \sqrt{1-\sin \left (d x-\tan ^{-1}(\cot (c))\right )} \sqrt{-\sqrt{\cot ^2(c)+1} \sin (c) \sin \left (d x-\tan ^{-1}(\cot (c))\right )} \sqrt{\sin \left (d x-\tan ^{-1}(\cot (c))\right )+1} \sec ^6\left (\frac{c}{2}+\frac{d x}{2}\right )}{6 d \sqrt{\cot ^2(c)+1}} \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 4.144, size = 654, normalized size = 4.1 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{{\left (B \cos \left (d x + c\right ) + A\right )}{\left (a \cos \left (d x + c\right ) + a\right )}^{3}}{\cos \left (d x + c\right )^{\frac{5}{2}}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\frac{B a^{3} \cos \left (d x + c\right )^{4} +{\left (A + 3 \, B\right )} a^{3} \cos \left (d x + c\right )^{3} + 3 \,{\left (A + B\right )} a^{3} \cos \left (d x + c\right )^{2} +{\left (3 \, A + B\right )} a^{3} \cos \left (d x + c\right ) + A a^{3}}{\cos \left (d x + c\right )^{\frac{5}{2}}}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{{\left (B \cos \left (d x + c\right ) + A\right )}{\left (a \cos \left (d x + c\right ) + a\right )}^{3}}{\cos \left (d x + c\right )^{\frac{5}{2}}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]